package memory

import "testing"

type User struct {
	Age     int32
	IsAdmin bool
	Score   int64
}

type UserOptiimized struct {
	Score   int64
	Age     int32
	IsAdmin bool
}

func BenchmarkUser(b *testing.B) {
	users := make([]User, 1000)
	for i := 0; i < b.N; i++ {
		for _, u := range users {
			_ = u.Age + int32(u.Score)
		}
	}
}
